package com.zenjava.update.ui;

import com.zenjava.update.AppProfile;
import com.zenjava.update.ZenUpdateManager;
import javafx.concurrent.Service;
import javafx.concurrent.Task;

public class LoadInstalledAppProfileService extends Service<AppProfile>
{
    protected Task<AppProfile> createTask()
    {
        return new Task<AppProfile>()
        {
            protected AppProfile call() throws Exception
            {
                ZenUpdateManager zenUpdateManager = ZenUpdateManager.getInstance();
                return zenUpdateManager.getInstalledAppProfile();
            }
        };
    }
}
